package com.knowledge.graph.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @description: 作为统一的响应对象
 * @author jiwenlong
 * @date 2023/11/5 16:40
 * @version 1.0
 */
@AllArgsConstructor
@Data
public class ResponseVO<T> {

    private Integer code;

    private String message;

    private T data;

    public ResponseVO(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResponseVO() {

    }
}
